<!--
    group: 企业管理
    name: 企业注册信息预览
    url: /user/enterprisePreviewPDF
-->
<template>
  <div style="width: 100%;height: 100%;">
    <a-spin :spinning="spinning">
      <div class="m-vue-pdf">
        <Pdf4H5New v-if="pdfUrl" :pdfUrl="pdfUrl"></Pdf4H5New>
      </div>
    </a-spin>
  </div>
</template>

<script>
import Pdf4H5New from '@views/MoveLayout/components/Pdf4H5_.vue'
import { carriedParameters } from '@/utils/util'

export default {
  name: 'enterprisePreviewPDF',
  components: { Pdf4H5New },
  data(){
    return{
      pdfUrl: null,
      spinning: true,
    }
  },
  created() {
    this.pdfUrl = carriedParameters(window.location.href,'url') || '';
    if (this.pdfUrl){
      this.spinning = false;
    }
  },
}
</script>

<style scoped lang="less">
.m-vue-pdf {
  width: 100%;
  height: 100%;
  overflow: hidden;
  //border: 1px solid #4266E5;
  background-color: rfba(66,102,229,.8);
}
/deep/ .ant-spin-nested-loading{
  height: 100%;
}
</style>
